/*
 * drverMigrate.java
 *
 * Created on May 20, 2005, 12:45 PM
 */

package aa.drivers;

import aa.core.*;
import aa.gui.View;


import java.net.InetAddress;

/**
 *
 * @author  xinghuizhao
 */
public class drverMigrate {
    
    /** Creates a new instance of drverMigrate */
    public drverMigrate() {
    }
    
    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        
        
        Integer iPort = new Integer(8070);
        
        View myView = new View(iPort);
        
        Platform myPlatform = new Platform(myView,iPort);
        
        Object[] objaAgs = {};
        
        
        CyberOrg cyb =(CyberOrg)myPlatform.createCyberOrg(new Long(1000),new Long(1000),new Long(1000),"aa.core.FacilitatorActor",objaAgs);
        
        ActorName actor1 = myPlatform.createActor(cyb.getFacilitator(), "aa.drivers.migrator", objaAgs);
        
        Object[] objaAgs2 = new Object[1];
        objaAgs2[0]="jialing";
        
        ActorMessage amMsg = new ActorMessage(myPlatform.getActorNameOfPlatform(), 
                                              actor1, 
                                              "trigger", 
                                              objaAgs2,
                                              false);
        
        System.out.println("before migration: "+System.currentTimeMillis());
        myPlatform.sendMessage(amMsg);
    }
    
}
